<?php
$this->pageTitle = Yii::app()->name . " - 用户登录";
?>
<?php
$form = $this->beginWidget('bootstrap.widgets.TbActiveForm', array(
    'id' => 'login-form',
    'htmlOptions' => array(),
    'type' => 'inline',
    'enableClientValidation' => true,
    'clientOptions' => array('validateOnSubmit' => true,),
));
?>
    <div class="row loginfream" xmlns="http://www.w3.org/1999/html">
        <div class="col-md-12" style="margin:0 0 20px 0;">
            <img src="<?php echo Yii::app()->baseUrl . '/images/logo_login.png' ?>"/>
        </div>
        <div class="col-md-12" style="margin:0 0 15px 0;">
            <?php
            echo $form->textFieldRow($model, 'username', array(
                'style' => 'width:210px;height:35px;',
                'prepend' => '<i class="fa fa-user" style="width:45px;margin:0 auto;line-height:15px;font-size:20px;"></i>',
                'prependOptions' => array('style' => ''),
            ));
            ?>
        </div>
        <div class="col-md-12" style="margin:0 0 15px 0;">
            <?php
            echo $form->passwordFieldRow($model, 'password', array(
                'style' => 'width:210px;height:35px;',
                'prepend' => '<i class="fa fa-lock" style="width:45px;margin:0 auto;line-height:15px;font-size:20px;"></i>',
                'prependOptions' => array('style' => ''),
            ));
            ?>
        </div>
        <div class="col-md-12" style="margin:0 0 15px 0;">
            <?php
            echo $form->checkBox($model, 'rememberMe', array(
                'prependOptions' => array('style' => ''),
            ));
            ?><b>  七天内自动登录</b>
        </div>
        <div class="col-md-12" >
            <?php
            $this->widget('bootstrap.widgets.TbButton', array(
                'buttonType' => 'submit',
                'label' => '登 录',
                'htmlOptions' => array('class' => 'btnLogin'),
            ));
            ?>
        </div>
    </div>
<?php
$this->endWidget();
?>
<!-- for guest login-->
